﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title></title>
    <link type="text/css" rel="stylesheet" href="../lib/js/layout-default-latest.css" />
    <link href="../lib/css/buttons.css" rel="stylesheet" type="text/css" />    
    <link href="../lib/css/page.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="../lib/js/jquery-1.9.0.min.js"></script>
	<script type="text/javascript" src="../lib/js/jquery.layout-latest.js"></script>
    <script src="../lib/supcan/dynaload.js" type="text/javascript"></script>

    <script type="text/javascript">
        var outerLayout, innerLayout;

        var outerLayoutOptions = {
            north__childOptions: {
                inset: {
                    top: 0
			        , bottom: 0
			        , left: 0
			        , right: 0
                },
                north__closable: false,
                north__resizable: false,
                north__size: 30,
                north__spacing_open: 0 //边框的间隙   
            },

            center__childOptions: {
                inset: {
                    top: 0
			        , bottom: 0
			        , left: 0
			        , right: 0
                },
                north__closable: false,
                north__resizable: false,
                north__size: 78,
                north__minHeight: 78,
                north__onhide_start: panelClose,
                south__size: 34,
                north__spacing_open: 0, //边框的间隙  
                south__spacing_open: 0  //边框的间隙 
            },
            north__closable: false,
            north__resizable: false,
            north__size: 70,
            north__minHeight:70,
            north__spacing_open: 0, //边框的间隙 
            south__size: 5,
            south__spacing_open: 0  //边框的间隙           
        };

        $(document).ready(function () {
            outerLayout = $('body').layout(outerLayoutOptions);
            innerLayout = outerLayout.center.children.layout1;
        });

        function hideCondition() {            
            innerLayout.hide("north");
        }
        function showCondition() {
            innerLayout.show("north");
        }
        function panelClose(pane) {
            if ((navigator.userAgent.indexOf('MSIE') >= 0) && (navigator.userAgent.indexOf('Opera') < 0)) {
                //如果是IE浏览器，则不需要执行
            }
            else {
                innerLayout.state[pane].isClosed = true;
            }
        }
    </script>
    
    <script type="text/javascript">
        var countForFirefox = 0;
        function OnReady(id) {
            if ($isFirefox) {
                countForFirefox++;
                if (countForFirefox != 3) return;
                id = ''; //赋 id 为空串，使得下面的语句能全部执行
            }

            if (id == 'AFList' || id == '') {
                AFList.func("Build", "../testdata/BusinessAnalysisList.xml");
                AFList.func("load", "../testdata/经营分析表.xml");
            }
            if (id == "AFForm" || id == '') {
                AFForm.func("Build", "../testdata/InvoiceBillDetailTop.xml");
            }
            if (id == 'AFPager' || id == '') {
                AFPager.func("Build", "../testdata/Pager.xml");
            }
        }

    </script>
</head>
<body>
<div class="ui-layout-north container">
    <div class="ui-layout-north ecTitle">公司经营情况分析表</div>
    <div class="ui-layout-center ecToolBar">
        <a href="#" class="button blue medium bigrounded" onclick="parent.addPageTab('B1010111','脚本之家','http://www.jb51.net/jiaoben/')">新增</a>
        <a href="#" class="button green medium">复制</a>
        <a href="#" class="button green medium">修改</a>
        <a href="#" class="button green medium" onclick="hideCondition()">删除</a>
        <a href="#" id="btnSearch" class="button orange medium" onclick="showCondition()">查询</a>
        <a href="#" class="button green medium" onclick="hideCondition()">隐藏面板</a>
    </div>    
</div>
<div class="ui-layout-center container">
    <div class="ui-layout-north ecCondition">
        <script type='text/javascript'>
            insertFreeForm('AFForm', 'Border=none;')
        </script>    
    </div>
    <div class="ui-layout-center ecListView">
        <script type='text/javascript'>
            insertTreeList('AFList', 'Border=none');           
        </script>
    </div>
    <div class="ui-layout-south ecPager">
        <script type='text/javascript'>
            insertFreeForm('AFPager', 'Border=none;isUseContextFont=false');
        </script>
    </div>
</div>
<div class="ui-layout-south container"></div>
</body>
</html>
